///////////////////////////////////////////////////////////////////////////////
////  (c) Chaichuk AU (chaichuk@mail.ru), 								   ////
////  2004, Chelyabinsk, NTC Privodnaya Tehnika (momentum@chel.surnet.ru)  ////
///////////////////////////////////////////////////////////////////////////////

/* CwRect.h - widget header file */
#ifndef __CWRECT_H_
#define __CWRECT_H_

#include <Pt.h>

/* widget resources */

#define Cw_RECT_ARG_TYPE			Pt_RESOURCE (Pt_USER (5), 0)
#define Cw_RECT_ARG_DRAW_RECT		Pt_RESOURCE (Pt_USER (5), 1)
#define Cw_RECT_ARG_COLOR			Pt_RESOURCE (Pt_USER (5), 2)


enum 	{	thiristor = 0, 
			open_contact, 
			closed_contact,
			dc_motor,
			switch_left,
			switch_right,
			transformator,
			switch_mid,
			obm_vozb,
		};

/* widget instance structure */
typedef struct cw_rect_widget{
	PtBasicWidget_t	basic;	
	
	int 		type;	
	int 		draw_rect;
	PgColor_t	rect_color;

}	CwRectWidget_t;

/* widget class pointer */
extern PtWidgetClassRef_t *CwRect;

#endif //__CWRECT_H_